// src/types.ts

export interface VoiceClone {
    used: number;
    allowed: number;
    remaining: number;
  }
  
  export interface DigitalHuman {
    id: number;
    materialName: string;
    url: string;
    createdAt: string;
  }
  
  export interface DigitalHumanVideo {
    id: number;
    materialName: string;
    duration: number;
    url: string; // 已修改为 url
    createdAt: string;
  }
  
  export interface VideoTime {
    used: number;
    allowed: number;
    remaining: number;
  }
  
  export interface DataType {
    userId: React.Key | null; // userId 可能为空
    phoneNumber: string;
    power: number;
    vipLevel: number;
    vipExpireTime: any;
    highFidelityVoiceClone: VoiceClone;
    basicVoiceClone: VoiceClone;
    digitalHuman: VoiceClone;
    digitalHumans: DigitalHuman[];
    digitalHumanVideos: DigitalHumanVideo[];
    videoTime: VideoTime;
    createAssistantExtraCount: VoiceClone;
    pageConfigs: string[]; // 新增字段，用于超级编导功能
  }
  